package com.gitee.swsk33.demoserviceorder.service;

import com.gitee.swsk33.demoentity.dataobject.Order;
import com.gitee.swsk33.demoentity.model.Result;

import java.util.List;

public interface OrderService {

	/**
	 * 根据id查询
	 */
	Result<Order> getById(int id);

	/**
	 * 查询某个用户全部订单
	 */
	Result<List<Order>> getByUserId(int userId);

}